import 'package:fish_redux/fish_redux.dart';

enum HomeAction { onChangeTab, tab, loading, loaded }

class HomeActionCreator {
  static Action tab(int index) {
    return Action(HomeAction.tab, payload: index);
  }

  static Action loading() {
    return Action(HomeAction.loading);
  }

  static Action loaded() {
    return Action(HomeAction.loaded);
  }

  static Action onChangeTab(int index) {
    return Action(HomeAction.onChangeTab, payload: index);
  }
}
